package com.itmuch.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.GetMapping;

import feign.Contract;
import feign.Logger;

@Configuration
public class Configurationl {
	
	//@GetMapping("/{serviceName}")请求权限的问题
	@Bean
	public Contract feignContract() {
		return new feign.Contract.Default();
	}
	
	//添加日志
	@Bean
	Logger.Level feignLogger() {
		return Logger.Level.FULL;
	}
	
}
